<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>风格预览 - 家庭点餐系统</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
        }

        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }

        .header h1 {
            font-size: 36px;
            font-weight: 300;
            margin-bottom: 10px;
            text-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .header p {
            font-size: 18px;
            opacity: 0.9;
        }

        .styles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 40px;
        }

        .style-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .style-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        }

        .style-preview {
            height: 400px;
            overflow: hidden;
            position: relative;
        }

        .style-preview iframe {
            width: 100%;
            height: 100%;
            border: none;
            transform: scale(0.8);
            transform-origin: top left;
            width: 125%;
            height: 125%;
        }

        .style-info {
            padding: 25px;
            text-align: center;
        }

        .style-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }

        .style-desc {
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .style-features {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 20px;
        }

        .feature-tag {
            background: #f0f0f0;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            color: #666;
        }

        .style-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .style-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .instructions {
            background: rgba(255,255,255,0.1);
            border-radius: 15px;
            padding: 20px;
            text-align: center;
            color: white;
            backdrop-filter: blur(10px);
        }

        .instructions h3 {
            margin-bottom: 10px;
        }

        /* 特定风格的主题色 */
        .teal .feature-tag { background: #E1F4F8; color: #5A8B96; }
        .purple .feature-tag { background: #F0F2FA; color: #6B7BA8; }
        .neon .feature-tag { background: #FFF2F0; color: #FF654F; }

        @media (max-width: 768px) {
            .styles-grid {
                grid-template-columns: 1fr;
            }
            
            .header h1 {
                font-size: 28px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header class="header">
            <h1>🎨 风格预览中心</h1>
            <p>选择您喜欢的设计风格，让您的餐厅应用与众不同</p>
        </header>

        <div class="styles-grid">
            <!-- 现代简约蓝绿风格 -->
            <div class="style-card teal" onclick="openStyle('modern-teal.html')">
                <div class="style-preview">
                    <iframe src="modern-teal.html" scrolling="no"></iframe>
                </div>
                <div class="style-info">
                    <h3 class="style-title">现代简约蓝绿风格</h3>
                    <p class="style-desc">专业干净的设计，适合商务餐厅和高端用餐场所。清新的蓝绿色调营造宁静舒适的氛围。</p>
                    <div class="style-features">
                        <span class="feature-tag">专业感</span>
                        <span class="feature-tag">现代化</span>
                        <span class="feature-tag">清新</span>
                        <span class="feature-tag">商务风</span>
                    </div>
                    <button class="style-button">选择此风格</button>
                </div>
            </div>

            <!-- 未来暮光风格 -->
            <div class="style-card purple" onclick="openStyle('future-dusk.html')">
                <div class="style-preview">
                    <iframe src="future-dusk.html" scrolling="no"></iframe>
                </div>
                <div class="style-info">
                    <h3 class="style-title">未来暮光风格</h3>
                    <p class="style-desc">神秘高端的紫灰色调，带有科技感的渐变效果。适合精品餐厅和创意料理店。</p>
                    <div class="style-features">
                        <span class="feature-tag">神秘感</span>
                        <span class="feature-tag">高端</span>
                        <span class="feature-tag">科技感</span>
                        <span class="feature-tag">精品风</span>
                    </div>
                    <button class="style-button">选择此风格</button>
                </div>
            </div>

            <!-- 霓虹光辉风格 -->
            <div class="style-card neon" onclick="openStyle('neon-flare.html')">
                <div class="style-preview">
                    <iframe src="neon-flare.html" scrolling="no"></iframe>
                </div>
                <div class="style-info">
                    <h3 class="style-title">霓虹光辉风格</h3>
                    <p class="style-desc">充满活力的橙红色调配合黑色背景，营造出年轻时尚的夜店氛围。适合快餐和潮流餐厅。</p>
                    <div class="style-features">
                        <span class="feature-tag">活力四射</span>
                        <span class="feature-tag">年轻</span>
                        <span class="feature-tag">时尚</span>
                        <span class="feature-tag">潮流风</span>
                    </div>
                    <button class="style-button">选择此风格</button>
                </div>
            </div>
        </div>

        <div class="instructions">
            <h3>📱 如何使用</h3>
            <p>点击任意风格卡片可以在新窗口中预览完整效果。选择您喜欢的风格后，我们将为您的小程序应用该设计。</p>
        </div>
    </div>

    <script>
        function openStyle(filename) {
            window.open(filename, '_blank', 'width=375,height=812,scrollbars=yes,resizable=yes');
        }

        // 添加卡片点击动画
        document.querySelectorAll('.style-card').forEach(card => {
            card.addEventListener('click', function() {
                this.style.transform = 'scale(0.95)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
    </script>
</body>
</html> 